package yf.mall.dao;

import com.yf.dao.BaseDao;
import yf.mall.entity.CourseEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 讲堂Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Mon Oct 21 08:39:57 CST 2019
 */
@Mapper
public interface CourseDao extends BaseDao<CourseEntity> {

    /**
     * List<CourseVo> queryListVo(CourseVo courseVo);
     * <p>
     * CourseVo getVo(Long id);
     **/

    List<CourseEntity> findByGoodsIdAndStatus(@Param("goodsId") Long goodsId, @Param("status") Integer status);

    List<CourseEntity> findByStatus(@Param("status") Integer status);


    CourseEntity findByGoodsId(Long goodsId);


}
